package com.codergd.gra.service;

import com.codergd.gra.bean.Job;
import com.codergd.gra.bean.Orders;
import com.codergd.gra.dao.OrderDao;
import com.codergd.gra.vo.ComFive;
import com.codergd.gra.vo.JobFive;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderService {

    @Autowired
    OrderDao orderDao;

    public int insertOrder(Orders orders){
        return orderDao.insertOrder(orders);
    }

    public List<ComFive> selectCom(){
        return orderDao.selectCom();
    }

    public List<Job> selectJob(){
        return orderDao.selectJob();
    }

    public List<JobFive> selectJob1(){
        return orderDao.selectJob1();
    }
}
